import React, {Component} from "react";
import {
	View,
	Text,
	ToastAndroid,
	Button,
} from "react-native";

export default class Toast extends Component {
	constructor(props) {
		super(props);
	}
	_onPress() {
		ToastAndroid.show("这是一段提示信息", ToastAndroid.SHORT, ToastAndroid.TOP)
	}
	render() {
		return (
			<View>
				<Button 
					onPress={this._onPress}
					title="提示信息"
				/>
			</View>
		);
	} 
}